package com.challenge.Order;

import com.alibaba.fastjson.JSONArray;
import com.challenge.util.JsonUtil;
import java.util.ArrayList;

/**
 *
 */
public class Orders {
    public ArrayList orders = new ArrayList();

    /**
     * init all orders
     * @return
     */
    public JSONArray initOrders(){

        String s = JsonUtil.readJsonFile("input.json");
        JSONArray jsonArray = JSONArray.parseArray(s);
        System.out.println(" have " +  jsonArray.size() + " orders" );

        return jsonArray;
    }



}
